package cn.lanqiao.rabc.dao;

import cn.lanqiao.rabc.entity.User;
import cn.lanqiao.rabc.vo.QueryUserVO;
import cn.lanqiao.rabc.vo.UserVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface UserDao extends BaseMapper<User> {

    List<UserVO> query(QueryUserVO queryUserVO);

    @MapKey("user_id")
    @Select("select user_id, user_name, user_pass from t_user limit #{start}, #{limit} ")
    HashMap queryMap(@Param("start") int start, @Param("limit") int limit);

    UserVO checkUser(UserVO user);

}
